package com.woniu.product.service.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 商品类别
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lg_category")
public class CategoryDto implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * category_id
     */
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    /**
     * 类别名称
     */
    private String categoryName;

    /**
     * 父类别ID，如果为-1则为顶级父类
     */
    private Integer parentId;
    /**
     * 是否叶子节点 YES 是 | NO 否
     */
    private String lefState;
    /**
     * 下级目录
     */
    private List<CategoryDto> categoryInfoList;




}
